package com.xunk.system.domain;

import com.xunk.common.core.annotation.Excel;
import com.xunk.common.core.web.domain.BaseEntity;
import com.xunk.system.vo.SysSceneType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 场景信息对象 sys_scene
 * 
 * @author ruoyi
 * @date 2021-04-08
 */
public class SysScene {

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long sceneId;

    /** 场景名称 */
    @Excel(name = "场景名称")
    private String sceneName;

    /** icon图标 */
    @Excel(name = "icon图标")
    private String icon;

    /** 场景类型：手动、定时、设备触发 或者 是当成触发场景的前置条件 */
    @Excel(name = "场景类型：手动、定时、设备触发 或者 是当成触发场景的前置条件")
    private Integer sceneType;

    /** 若是场景联动，触发当前场景的前置场景id */
    @Excel(name = "若是场景联动，触发当前场景的前置场景id")
    private String causeSceneIds;

    private String code;

    private String sceneFunction;

    public SysScene() {
    }

    public SysScene(String code) {
        this.code = code;
    }

    public String getSceneFunction() {
        return sceneFunction;
    }

    public void setSceneFunction(String sceneFunction) {
        this.sceneFunction = sceneFunction;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setSceneId(Long sceneId)
    {
        this.sceneId = sceneId;
    }

    public Long getSceneId() 
    {
        return sceneId;
    }
    public void setSceneName(String sceneName) 
    {
        this.sceneName = sceneName;
    }

    public String getSceneName() 
    {
        return sceneName;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setSceneType(Integer sceneType) 
    {
        this.sceneType = sceneType;
    }

    public Integer getSceneType() 
    {
        return sceneType;
    }
    public void setCauseSceneIds(String causeSceneIds) 
    {
        this.causeSceneIds = causeSceneIds;
    }

    public String getCauseSceneIds() 
    {
        return causeSceneIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sceneId", getSceneId())
            .append("sceneName", getSceneName())
            .append("icon", getIcon())
            .append("sceneType", getSceneType())
            .append("causeSceneIds", getCauseSceneIds())
            .toString();
    }
}
